package com.example.hotel.dao;

import com.example.hotel.entity.Room;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
@Mapper
public interface RoomDao {

@Insert("insert into room(room_id,room_type,room_state,price) values(#{roomId},#{roomType},#{roomState},#{price})")
    int insert(Room room);
    int deleteById(int roomId);
    int update(@Param("roomId") int roomId,@Param("roomType")String roomType,@Param("roomState")String roomState, @Param("price")float price);

     List<Room> findAllRoom() ;




}